----------------------------------------------- mxc.cmd @echo off rem MX Cobol 3.0 - (c) Vlastimil Cevela 2006 rem mxc.cmd ..... checking, compilation and linking if "%1"=="chk" goto C if "%1"=="opt" goto O if "%1"=="lnk" goto L if "%1"=="all" goto A echo. echo mxc.cmd: option %1 not found or invalid echo. pause goto E :C if exist mxc.lst del mxc.lst notepad.exe %3.%2 c:/mxc/mxc.exe -c -g -p -t %3.%2 > mxc.tmp c:/mxc/mxc-lst.exe %3.g if error-level 1 pause del mxc.tmp if exist %3.obj goto E notepad.exe mxc.lst goto E :A if exist mxc.lst del mxc.lst if exist %3.c del %3.c if exist %3.d del %3.d if exist %3.exe del %3.exe notepad.exe %3.%2 c:/mxc/mxc.exe -g -p -s -t %3.%2 > mxc.tmp c:/mxc/mxc-lst.exe %3.g del mxc.tmp del %3.f del %3.g echo. echo *.c = output from MX COBOL = source for C compiler: echo. pause notepad.exe %3.c echo. echo *.d = output from MX COBOL = include for C compiler: echo. pause notepad.exe %3.d copy mxc.lst %3.lst > null del null echo. echo *.lst = summary listing from MX COBOL + C compilation: echo. pause notepad.exe %3.lst goto F :L if exist mxc.lst del mxc.lst if exist %3.exe del %3.exe notepad.exe %3.%2 c:/mxc/mxc.exe -g -p -t %3.%2 > mxc.tmp c:/mxc/mxc-lst.exe %3.g del mxc.tmp if exist %3.exe goto E notepad.exe mxc.lst goto E :O c:/mxc/mxc.exe > mxc.lst notepad.exe mxc.lst goto E :E call c:/mxc/mxc-del.cmd :F ----------------------------------------------- mxc-del.cmd @echo off rem MX Cobol 3.0 - (c) Vlastimil Cevela 2006 rem mxc-del.cmd ... all working files MX COBOL are deleted del *.c del *.d del *.e del *.f del *.g del *.obj ----------------------------------------------- mxc-sub.cmd @echo off rem MX Cobol 3.0 - (c) Vlastimil Cevela 2006 rem mxc-sub.cmd ... main + subprograms are compiled and linked if exist %1.exe del %1.exe if exist mxc.lst del mxc.lst c:/mxc/mxc.exe -g -p %1 %2 %3 %4 %5 %6 %7 %8 %9 > mxc.lst c:/mxc/mxc-del.cmd ----------------------------------------------- wpar_1.cmd @echo off c:\mxc\wpar_2.exe %1 call wpar_3.cmd del wpar_3.cmd -----------------------------------------------